import { ElMessage } from 'element-plus'

// 成功提示
export const showSuccess = (message) => {
  ElMessage({
    type: 'success',
    message
  })
}

// 错误提示
export const showError = (message) => {
  ElMessage({
    type: 'error',
    message: message || '操作失败'
  })
}

// 警告提示
export const showWarning = (message) => {
  ElMessage({
    type: 'warning',
    message
  })
}

// 普通提示
export const showInfo = (message) => {
  ElMessage({
    type: 'info',
    message
  })
} 